import service from ".";
const historyApi = ({
    //发送axios请求给服务器
    // 查询所有停车场停车记录
    selectAll(){
        //发送axios请求给服务器
        return service.get('/admin/historyController/selectAll');
    },
    //获取所有已经入库的车辆
    allCar(parkId){
        return service.get(`/admin/historyController/allHistory/${parkId}`);
    },
    //分配车辆
    match(parkId, carIds){
        return service.post(`/admin/historyController/parkIdAndCarId`,{
            parkId,
            carIds
        });
    }
});
export default historyApi;